<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>商品详细页面</h1>
<ul>
    <li>商品名称:{{goods.0.name}}</li>
    <li>商品图片:<img src="{{goods.0.imgsrc}}" width="50"></li>
    <li>商品价格:{{goods.0.price}}</li>
    <li>商品数量:{{goods.0.count}}</li>
    <li>
        <form action="/goodinfo/" method="POST">  <!-- method="get" -->
            <input type="text" name="gid" value="{{goods.0.gid}}" hidden>
            <input type="submit" value="加入购物车">
        </form>
        <!--            <a href="/goodinfo/?car_gid={{goods.0.gid}}">加入购物车</a>-->
    </li>
</ul>
</body>
</html>